<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//登录页面
Route::get('login', function () {
    return view('login');
});
//登录处理
Route::post('dologin',[\App\Http\Controllers\LoginController::class,'dologin']);
//退出登录
Route::post('logout',[\App\Http\Controllers\LoginController::class,'logout']);

//菜单栏
Route::get('index', function () {
    return view('index');
});
